From: Keir Fraser Date: Thu, 2 Jul 2009 10:34:48 +0000 (+0100) Subject: xend: fix an undefined name error: mac may be referenced before definition. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13659 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f6833dff97820d32fcd015d4c86cf99e52d19b43;p=xen.git xend: fix an undefined name error: mac may be referenced before definition. Signed-off-by: Zhigang Wang --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index bb7bd72c1f..40b81cf1ac 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1230,6 +1230,7 @@ class XendDomainInfo: if rm_cfg: if deviceClass == 'vif': if self.domid is not None: + mac = '' for dev_num, dev_info in sxprs: dev_num = int(dev_num) if dev_num == dev: